public class NBodySimulation {
	public static final int NUM_BODIES = 3;

	public static final double GRAVITATIONAL_CONST = 6.67428e7;// in Zg=1e18 kg

	public static void main(String[] args) {

		double[] auxPosition;
		double[] auxVelocity;
		double[] auxAcceleration;
		auxPosition = new double[2];
		auxVelocity = new double[2];
		auxAcceleration = new double[2];

		// Earth
		auxPosition[0] = 0;
		auxPosition[1] = 0;
		auxVelocity[0] = 0;
		auxVelocity[1] = 0;
		auxAcceleration[0] = 0;
		auxAcceleration[1] = 0;
		Body earth = new Body(5.9736e6, auxPosition, auxVelocity,
				auxAcceleration);

		// Moon
		auxPosition[0] = 4e8;
		auxPosition[1] = 0;
		auxVelocity[0] = 0;
		auxVelocity[1] = 1022;
		auxAcceleration[0] = 0;
		auxAcceleration[1] = 0;
		Body moon = new Body(7.3477e4, auxPosition, auxVelocity,
				auxAcceleration);

		System.out.println("Earth mass: " + earth.getMass() + " Zg");
		auxPosition = earth.getPosition();
		System.out.println("Earth position: (" + auxPosition[0] + ","
				+ auxPosition[1] + ") m");

		System.out.println("Moon mass: " + moon.getMass() + " Zg");
		auxPosition = moon.getPosition();
		System.out.println("Moon position: (" + auxPosition[0] + ","
				+ auxPosition[1] + ") m");

	}
}
